// 组件Schema定义
export interface ComponentSchema {
  component: string
  props?: Record<string, any>
  children?: ComponentSchema[]
  id?: string
}

// LLM响应格式
export interface LLMResponse {
  components: ComponentSchema[]
  reasoning?: string
}

// 消息类型
export interface Message {
  from: 'user' | 'model'
  content: string
  timestamp: number
  schema?: ComponentSchema[]
}

// 验证结果
export interface ValidationResult {
  valid: boolean
  data?: ComponentSchema[]
  error?: string
}